package com.asl.website.feature.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.asl.website.feature.mapper.TTransportFeatureMapper;
import com.asl.website.feature.domain.TTransportFeature;
import com.asl.website.feature.service.ITTransportFeatureService;

/**
 * 运输功能Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
@Service
public class TTransportFeatureServiceImpl implements ITTransportFeatureService 
{
    @Autowired
    private TTransportFeatureMapper tTransportFeatureMapper;

    /**
     * 查询运输功能
     * 
     * @param id 运输功能主键
     * @return 运输功能
     */
    @Override
    public TTransportFeature selectTTransportFeatureById(Long id)
    {
        return tTransportFeatureMapper.selectTTransportFeatureById(id);
    }

    /**
     * 查询运输功能列表
     * 
     * @param tTransportFeature 运输功能
     * @return 运输功能
     */
    @Override
    public List<TTransportFeature> selectTTransportFeatureList(TTransportFeature tTransportFeature)
    {
        return tTransportFeatureMapper.selectTTransportFeatureList(tTransportFeature);
    }

    /**
     * 新增运输功能
     * 
     * @param tTransportFeature 运输功能
     * @return 结果
     */
    @Override
    public int insertTTransportFeature(TTransportFeature tTransportFeature)
    {
        return tTransportFeatureMapper.insertTTransportFeature(tTransportFeature);
    }

    /**
     * 修改运输功能
     * 
     * @param tTransportFeature 运输功能
     * @return 结果
     */
    @Override
    public int updateTTransportFeature(TTransportFeature tTransportFeature)
    {
        return tTransportFeatureMapper.updateTTransportFeature(tTransportFeature);
    }

    /**
     * 批量删除运输功能
     * 
     * @param ids 需要删除的运输功能主键
     * @return 结果
     */
    @Override
    public int deleteTTransportFeatureByIds(Long[] ids)
    {
        return tTransportFeatureMapper.deleteTTransportFeatureByIds(ids);
    }

    /**
     * 删除运输功能信息
     * 
     * @param id 运输功能主键
     * @return 结果
     */
    @Override
    public int deleteTTransportFeatureById(Long id)
    {
        return tTransportFeatureMapper.deleteTTransportFeatureById(id);
    }
}
